package com.bysc.userservice.client;

import com.bysc.commonutils.Results;
import com.bysc.commonutils.message.NotificationMessage;
import com.bysc.commonutils.vo.JoinUserDept;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

@Component

public class JoinDegradeFeignClient implements JoinClient {

    @Override
    public Results getDeptsByUserId(String userId) {
        JoinUserDept joinUserDept = new JoinUserDept();
        joinUserDept.setDeptId("");
        return  Results.error().data("userDept",joinUserDept).message("time out");
    }

    @Override
    public Results getAllJoin() {
        return  Results.error().data("ids",new ArrayList<>()).message("time out");
    }
}


